<div class="dashin" style="position:relative;height:300px;width:300px;overflow-x:hidden;overflow-y:scroll">
	<?php if( count($this->get('posts') ) > 0 ):?>
	<?php foreach( $this->get('posts') as $a ):?>
	<div style="position:relative;margin:1px 3px;padding:8px;border-bottom:1px solid #ccc">
		<a href="<?php _e($a['url']);?>"><b><?php _e($a['title']);?></b></a>
		<?php if($a['created_by_photo']):?>
		<img title="<?php _e($a['created_by_name']);?>" style="margin-right:3px;width:30px;height:30px;border:1px solid #ccc;padding:1px;float:left" class="ds-avt" src="<?php _baseUrl()?>/files/photo/<?php _e($a['created_by_photo'])?>"/>
		<?php else:?>
		<img title="<?php _e($a['created_by_name']);?>" style="margin-right:3px;width:30px;height:30px;border:1px solid #ccc;padding:1px;float:left" class="ds-avt" src="<?php _baseUrl()?>/files/photo/noavatar.gif"/>
		<?php endif;?>
		<br/><span style="color:#aaa;"><?php _e(show_date('H:i:s',$a['date']));?> <?php _e(show_date('d/m/Y',$a['date']));?></span>
		<div><?php _e($a['content']);?></div>
		<div class="clear"></div>
		<a style="font-weight:bold;display:inline-block;position:absolute;top:5px;right:5px;font-size:15px" onclick="$.Ajax('<?php _baseUrl()?>/Notice/Index/Delete?ID=<?php _e($a['ID']);?>',{});$(this).parent(0).animate({opacity:0},{duration:600,callback: function(){ $(this).remove() }})">x</a>
	</div>
	
<?php endforeach;?>
<?php else:?>
<div style="padding:10px">Không có thông báo nào</div>
<?php endif;?> </div>